<template>
  <div id="HomeMain">
    <div>
      <HomePgaeTitle/>
    </div>
     <div>
      <HomePgaeTop/>
    </div>
    <div id="HomePageContent">
      <div id="content-left">
        <ProfileData/>
      </div>
      <div id="content-right">
        <ToRemind/>
      </div>
    </div>
   <div id="HomePageContent2">
      <div id="content2-left">
        <Residents/>
      </div>
      <div id="content2-right">
        <AbnormalResdents/>
      </div>
    </div>
    <div id="HomePageTable">
      <ContractSituation/>
    </div>
  </div>
</template>

<script>
import axios from 'axios'
axios.defaults.baseURL = "http://localhost:8080"
import HomePgaeTitle from '../../components/Home/HomePageTitle.vue'
import HomePgaeTop from '../../components/Home/HomePageTop.vue'
import ProfileData from '../../components/Home/ProfileData.vue'
import ToRemind from '../../components/Home/ToRemind.vue'
import Residents from '../../components/Home/Residents.vue'
import AbnormalResdents from '../../components/Home/AbnormalResdents.vue'
import ContractSituation from '../../components/Home/ContractSituation.vue'
export default {
  created(){
    document.querySelector('body').setAttribute('style', 'background-color:#F2F7FB')
  },
  components:{
    HomePgaeTitle,
    HomePgaeTop,
    ProfileData,
    ToRemind,
    Residents,
    AbnormalResdents,
    ContractSituation
  }
}
</script>

<style>
  *{
    margin: 0;
    padding: 0;
  }
  #HomeMain{
    width: 1150px;
    /* height: 2000px; */
    margin: 20px auto;
    position: relative;
    background: #E9ECEF;
    border-radius: 10px;
    box-shadow: 0 0 30px #dce0e4;
    box-sizing: border-box;
  }
  #HomePageContent{
    width: 100%;
    height: 450px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
  }
  #content-left{
    width: 855px;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 5px 20px;
  }
  #content-right{
    width: 264px;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 5px 20px;
  }

  #HomePageContent2{
    width: 100%;
    height: 385px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
  }
  #content2-left{
    width: 340px;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 5px 20px;
  }
  #content2-right{
    width: 775px;
    height: 100%;
    background: white;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 5px 20px;
  }

  #HomePageTable{
    width: 100%;
    height: 500px;
    border-radius: 10px;
    margin-top: 30px;
    background: white;
    box-sizing: border-box;
    padding: 5px 20px;
  }
</style>